import { axios } from '@/utils/request'

// 大师详情
export function getDetails(id) {
  return axios({
    url: `/masters/${id}`,
    method: 'get'
  })
}

// 更新大师
export function updateMaster(id, data) {
  return axios({
    url: `/masters/${id}`,
    method: 'put',
    data
  })
}

// 更新大师
export function deleteMaster(id, data) {
  return axios({
    url: `/masters/${id}`,
    method: 'delete',
    data
  })
}